package com.example.demo2.service;

import com.example.demo2.pojo.PageBean;
import com.example.demo2.pojo.data.CategoryDO;
import com.example.demo2.utils.Result;
import com.example.demo2.pojo.vo.CategoryVO;

/** 
 * <br/>
 * Created by weidong on 2020/02/16
 */
public interface CategoryService {

	Result add(CategoryVO categoryVO) throws Exception;

	Result updateById(CategoryVO categoryVO) throws Exception;
	
	Result findById(Integer id) throws Exception;
	
	Result list(CategoryVO categoryVO) throws Exception;

	PageBean listPage(CategoryVO categoryVO) throws Exception;
	
	Result count(CategoryVO categoryVO) throws Exception;
	
	Result deleteById(Integer id) throws Exception;

	Result deleteByCategoryId(Integer id) throws Exception;

	CategoryDO findCategoryName(Integer id) throws Exception;
}